<?php /* Smarty version 2.6.16, created on 2009-04-16 06:19:45
         compiled from InviteFriend.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'language', 'InviteFriend.html', 4, false),array('function', 'messages', 'InviteFriend.html', 34, false),array('function', 'str_replace', 'InviteFriend.html', 41, false),array('function', 'url', 'InviteFriend.html', 95, false),)), $this); ?>
<table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
<tr>
	<td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
	<td class="block_header"><?php echo smarty_function_language(array('text' => 'invite_your_friends'), $this);?>
</td>
</tr>
</table>

<div style="font-size:9pt;">
<br />
<div style="padding-left:10px;">

<?php if (! $this->_tpl_vars['aSended']): ?>
    <div><?php echo smarty_function_language(array('text' => 'below_you_can_email_your_friends_to'), $this);?>
</div>
    <br />

    <?php if (count ( $this->_tpl_vars['aMembers'] )): ?>
    <?php echo smarty_function_language(array('text' => 'Mod_Account.user_already_members'), $this);?>
:
    <ul>
    <?php $_from = $this->_tpl_vars['aMembers']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['aMember']):
?>
	     <li><?php echo $this->_tpl_vars['aMember']; ?>
</li>    
    <?php endforeach; endif; unset($_from); ?>
    </ul>
    <?php endif; ?>
    
    <?php if (count ( $this->_tpl_vars['aInvites'] )): ?>
    <?php echo smarty_function_language(array('text' => 'Mod_Account.user_already_invited'), $this);?>
:
    <ul>
    <?php $_from = $this->_tpl_vars['aInvites']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['aInvite']):
?>
	     <li><?php echo $this->_tpl_vars['aInvite']; ?>
</li>    
    <?php endforeach; endif; unset($_from); ?>
    </ul>
    <?php endif; ?>    
    
    <?php echo smarty_function_messages(array(), $this);?>

    <?php echo $this->_tpl_vars['jsValMess']; ?>

    <form method="post" action="<?php echo $this->_tpl_vars['sUrl']; ?>
" onsubmit="<?php echo $this->_tpl_vars['jsValidation']; ?>
">
    <input type="hidden" name="title" value="ok" />
    <table style="width:100%;" cellspacing="2" cellpadding="4">
    <?php unset($this->_sections['mail']);
$this->_sections['mail']['name'] = 'mail';
$this->_sections['mail']['start'] = (int)1;
$this->_sections['mail']['loop'] = is_array($_loop=$this->_tpl_vars['iNumEmails']+1) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['mail']['show'] = true;
$this->_sections['mail']['max'] = $this->_sections['mail']['loop'];
$this->_sections['mail']['step'] = 1;
if ($this->_sections['mail']['start'] < 0)
    $this->_sections['mail']['start'] = max($this->_sections['mail']['step'] > 0 ? 0 : -1, $this->_sections['mail']['loop'] + $this->_sections['mail']['start']);
else
    $this->_sections['mail']['start'] = min($this->_sections['mail']['start'], $this->_sections['mail']['step'] > 0 ? $this->_sections['mail']['loop'] : $this->_sections['mail']['loop']-1);
if ($this->_sections['mail']['show']) {
    $this->_sections['mail']['total'] = min(ceil(($this->_sections['mail']['step'] > 0 ? $this->_sections['mail']['loop'] - $this->_sections['mail']['start'] : $this->_sections['mail']['start']+1)/abs($this->_sections['mail']['step'])), $this->_sections['mail']['max']);
    if ($this->_sections['mail']['total'] == 0)
        $this->_sections['mail']['show'] = false;
} else
    $this->_sections['mail']['total'] = 0;
if ($this->_sections['mail']['show']):

            for ($this->_sections['mail']['index'] = $this->_sections['mail']['start'], $this->_sections['mail']['iteration'] = 1;
                 $this->_sections['mail']['iteration'] <= $this->_sections['mail']['total'];
                 $this->_sections['mail']['index'] += $this->_sections['mail']['step'], $this->_sections['mail']['iteration']++):
$this->_sections['mail']['rownum'] = $this->_sections['mail']['iteration'];
$this->_sections['mail']['index_prev'] = $this->_sections['mail']['index'] - $this->_sections['mail']['step'];
$this->_sections['mail']['index_next'] = $this->_sections['mail']['index'] + $this->_sections['mail']['step'];
$this->_sections['mail']['first']      = ($this->_sections['mail']['iteration'] == 1);
$this->_sections['mail']['last']       = ($this->_sections['mail']['iteration'] == $this->_sections['mail']['total']);
?>
    <tr>
        <td style="text-align:right;" class="color"><?php echo smarty_function_str_replace(array('text' => "`friends_email_smarty_section_mail_i`",'smarty_section_mail_index' => ($this->_sections['mail']['index'])), $this);?>
:</td>
        <td class="border13">
            <input type="text" name="aInvite<?php echo $this->_sections['mail']['index']; ?>
" size="40" onfocus="this.className='inputmain';" onblur="this.className='';" />
        </td>
    </tr>
    <?php endfor; endif; ?>
    <tr>
        <td style="text-align:right;" class="color" valign="top"><?php echo smarty_function_language(array('text' => 'your_message'), $this);?>
 ( <?php echo smarty_function_language(array('text' => 'optional'), $this);?>
 ):</td>
        <td class="border13">
            <textarea cols="40" rows="7" name="text"></textarea>
        </td>
    </tr>
    <tr>
        <td></td>
        <td><br/><input type="submit" name='act[send_invite]' value="      <?php echo smarty_function_language(array('text' => 'send'), $this);?>
      "  class="mainmenu6" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';" /></td>
    </tr>
    </table>
    </form>
<?php else: ?>

    <div style="font-size:9pt;">
        
        <?php echo smarty_function_language(array('text' => 'thank_you_for_taking_your_time_to_i'), $this);?>
 
        <br /> <?php echo smarty_function_language(array('text' => 'an_email_has_been_sent_out_to_the_f'), $this);?>

    
        <br /><br />
        <div style="padding-left:10px;font-size:10pt;">
            <ul>
            <?php $_from = $this->_tpl_vars['aSended']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['sEmail']):
?>
                <li><?php echo $this->_tpl_vars['sEmail']; ?>
</li>    
            <?php endforeach; endif; unset($_from); ?>
            </ul>   
            
		    <?php if (count ( $this->_tpl_vars['aMembers'] )): ?>
		    <?php echo smarty_function_language(array('text' => 'Mod_Account.user_already_members'), $this);?>
:
		    <ul>
		    <?php $_from = $this->_tpl_vars['aMembers']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['aMember']):
?>
		    	 <li><?php echo $this->_tpl_vars['aMember']; ?>
</li>    
    		<?php endforeach; endif; unset($_from); ?>
    		</ul>
		    <?php endif; ?>
    
		    <?php if (count ( $this->_tpl_vars['aInvites'] )): ?>
    		<?php echo smarty_function_language(array('text' => 'Mod_Account.user_already_invited'), $this);?>
:
    		<ul>
		    <?php $_from = $this->_tpl_vars['aInvites']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['aInvite']):
?>
			     <li><?php echo $this->_tpl_vars['aInvite']; ?>
</li>    
    		<?php endforeach; endif; unset($_from); ?>
		    </ul>
    		<?php endif; ?>               
            
        </div>
    
        <br />
        <a href="<?php echo smarty_function_url(array('link' => 'public.account.invite'), $this);?>
"><?php echo smarty_function_language(array('text' => 'click_here_to_send_more'), $this);?>
</a>
        <br /><br />
    </div>
<?php endif; ?>

</div>